function animi(pname,it,d1,d2){
this.prt=document.getElementById(pname);
this.pos=-1;this.l=true;
this.d1=d1;this.d2=d2;this.it=it;
this.uf=this.prt.filters!=null && this.prt.filters.length!=0;
eval(pname+"a=this");
}
animi.prototype.go = function(){
var lp=this.pos,prt=this.prt,chlds=prt.childNodes;
for(var p=((lp>=chlds.length-1)?-1:lp)+1;p<chlds.length;p=(p==chlds.length-1)?0:p+1){
var c=chlds[p];
if(c.className!=null && c.className.length>=this.it.length && c.className.substr(0,this.it.length)==this.it){
	if(this.uf)prt.filters(0).Apply();		
	if(lp>=0)chlds[lp].style.display="none";
	c.style.display="block";
	if(this.uf)prt.filters(0).Play();
	this.pos=p;
	setTimeout(prt.id+"a.go()",this.l?this.d1:this.d2);
	this.l=!this.l;
	return;
}
}
}